<?php
class foo {

    function __call($name,$arguments) {

        print("Did you call me? I'm $name!");
          var_dump($arguments);
    }

}
$x = new foo(11);

$x->doStuff(11);
/* 结果是
 * Did you call me? I'm doStuff!array(1) { [0]=> int(11) }
 */

//$x->fancy_stuff();

